package com.wolfword.crawler.client.dto;

import java.util.Date;

import com.wolfword.crawler.client.entity.CrawlTaskEntity;

/**
 * 
 * 
 * @author Server Zhang
 * @date 2018-01-11 10:54:52
 */
public class CrawlTaskWithHtmlDto {

	//
	private Long id;
	//
	private Long parentId;
	//
	private String url;
	//
	private String urlShort;
	//
	private String parentUrl;
	//
	private String parentUrlShort;
	//
	private String storePath;
	//
	private Long rootUrlId;
	// ҳ
	private Integer requestStatus;
	//
	private Date createTime;
	//
	private Integer mailCount;
	//
	private Integer phoneCount;
	//
	private Integer titleCount;
	//
	private Integer crawlStatus;
	//
	private String containStr;
	//
	private String requestName;
	//
	private String requestIp;
	//
	private Integer requestPort;
	//
	private Long requestLogId;
	//网页内容字符串
	private String htmlStr;

	public CrawlTaskWithHtmlDto (){
		
	}
	public CrawlTaskWithHtmlDto (CrawlTaskEntity entity){
		this.id = entity.getId();
		this.parentId = entity.getParentId();
		this.url = entity.getUrl();
		this.urlShort = entity.getUrlShort();
		this.parentUrl = entity.getParentUrl();
		this.parentUrlShort = entity.getParentUrlShort();
		this.storePath = entity.getStorePath();
		this.rootUrlId = entity.getRootUrlId();
		this.requestStatus = entity.getRequestStatus();
		this.createTime = entity.getCreateTime();
		this.mailCount = entity.getMailCount();
		this.phoneCount = entity.getPhoneCount();
		this.titleCount = entity.getTitleCount();
		this.crawlStatus = entity.getCrawlStatus();
		this.containStr = entity.getContainStr();
		this.requestName = entity.getRequestName();
		this.requestIp = entity.getRequestIp();
		this.requestPort = entity.getRequestPort();
		this.requestLogId = entity.getRequestLogId();
	}
	
	public String getHtmlStr() {
		return htmlStr;
	}

	public void setHtmlStr(String htmlStr) {
		this.htmlStr = htmlStr;
	}

	public Long getRequestLogId() {
		return requestLogId;
	}

	public void setRequestLogId(Long requestLogId) {
		this.requestLogId = requestLogId;
	}

	/**
	 * 获取：
	 * 
	 * @return id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置：
	 * 
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取：
	 * 
	 * @return parentId
	 */
	public Long getParentId() {
		return parentId;
	}

	/**
	 * 设置：
	 * 
	 * @param parentId
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	/**
	 * 获取：
	 * 
	 * @return url
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * 设置：
	 * 
	 * @param url
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * 获取：
	 * 
	 * @return urlShort
	 */
	public String getUrlShort() {
		return urlShort;
	}

	/**
	 * 设置：
	 * 
	 * @param urlShort
	 */
	public void setUrlShort(String urlShort) {
		this.urlShort = urlShort;
	}

	/**
	 * 获取：
	 * 
	 * @return parentUrl
	 */
	public String getParentUrl() {
		return parentUrl;
	}

	/**
	 * 设置：
	 * 
	 * @param parentUrl
	 */
	public void setParentUrl(String parentUrl) {
		this.parentUrl = parentUrl;
	}

	/**
	 * 获取：
	 * 
	 * @return parentUrlShort
	 */
	public String getParentUrlShort() {
		return parentUrlShort;
	}

	/**
	 * 设置：
	 * 
	 * @param parentUrlShort
	 */
	public void setParentUrlShort(String parentUrlShort) {
		this.parentUrlShort = parentUrlShort;
	}

	/**
	 * 获取：
	 * 
	 * @return storePath
	 */
	public String getStorePath() {
		return storePath;
	}

	/**
	 * 设置：
	 * 
	 * @param storePath
	 */
	public void setStorePath(String storePath) {
		this.storePath = storePath;
	}

	/**
	 * 获取：
	 * 
	 * @return rootUrlId
	 */
	public Long getRootUrlId() {
		return rootUrlId;
	}

	/**
	 * 设置：
	 * 
	 * @param rootUrlId
	 */
	public void setRootUrlId(Long rootUrlId) {
		this.rootUrlId = rootUrlId;
	}

	/**
	 * 获取：ҳ
	 * 
	 * @return requestStatus ҳ
	 */
	public Integer getRequestStatus() {
		return requestStatus;
	}

	/**
	 * 设置：ҳ
	 * 
	 * @param requestStatus
	 *            ҳ
	 */
	public void setRequestStatus(Integer requestStatus) {
		this.requestStatus = requestStatus;
	}

	/**
	 * 获取：
	 * 
	 * @return createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置：
	 * 
	 * @param createTime
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取：
	 * 
	 * @return mailCount
	 */
	public Integer getMailCount() {
		return mailCount;
	}

	/**
	 * 设置：
	 * 
	 * @param mailCount
	 */
	public void setMailCount(Integer mailCount) {
		this.mailCount = mailCount;
	}

	/**
	 * 获取：
	 * 
	 * @return phoneCount
	 */
	public Integer getPhoneCount() {
		return phoneCount;
	}

	/**
	 * 设置：
	 * 
	 * @param phoneCount
	 */
	public void setPhoneCount(Integer phoneCount) {
		this.phoneCount = phoneCount;
	}

	/**
	 * 获取：
	 * 
	 * @return titleCount
	 */
	public Integer getTitleCount() {
		return titleCount;
	}

	/**
	 * 设置：
	 * 
	 * @param titleCount
	 */
	public void setTitleCount(Integer titleCount) {
		this.titleCount = titleCount;
	}

	/**
	 * 获取：
	 * 
	 * @return crawlStatus
	 */
	public Integer getCrawlStatus() {
		return crawlStatus;
	}

	/**
	 * 设置：
	 * 
	 * @param crawlStatus
	 */
	public void setCrawlStatus(Integer crawlStatus) {
		this.crawlStatus = crawlStatus;
	}

	/**
	 * 获取：
	 * 
	 * @return containStr
	 */
	public String getContainStr() {
		return containStr;
	}

	/**
	 * 设置：
	 * 
	 * @param containStr
	 */
	public void setContainStr(String containStr) {
		this.containStr = containStr;
	}

	/**
	 * 获取：
	 * 
	 * @return requestName
	 */
	public String getRequestName() {
		return requestName;
	}

	/**
	 * 设置：
	 * 
	 * @param requestName
	 */
	public void setRequestName(String requestName) {
		this.requestName = requestName;
	}

	/**
	 * 获取：
	 * 
	 * @return requestIp
	 */
	public String getRequestIp() {
		return requestIp;
	}

	/**
	 * 设置：
	 * 
	 * @param requestIp
	 */
	public void setRequestIp(String requestIp) {
		this.requestIp = requestIp;
	}

	/**
	 * 获取：
	 * 
	 * @return requestPort
	 */
	public Integer getRequestPort() {
		return requestPort;
	}

	/**
	 * 设置：
	 * 
	 * @param requestPort
	 */
	public void setRequestPort(Integer requestPort) {
		this.requestPort = requestPort;
	}

	@Override
	public String toString() {
		return "CrawlTaskEntity{" + "id=" + id + ", parentId=" + parentId
				+ ", url=" + url + ", urlShort=" + urlShort + ", parentUrl="
				+ parentUrl + ", parentUrlShort=" + parentUrlShort
				+ ", storePath=" + storePath + ", rootUrlId=" + rootUrlId
				+ ", requestStatus=" + requestStatus + ", createTime="
				+ createTime + ", mailCount=" + mailCount + ", phoneCount="
				+ phoneCount + ", titleCount=" + titleCount + ", crawlStatus="
				+ crawlStatus + ", containStr=" + containStr + ", requestName="
				+ requestName + ", requestIp=" + requestIp + ", requestPort="
				+ requestPort + '}';
	}
}
